package com.peace.hospital.opdept.mapper.outpatientdept;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peace.hospital.entity.outpatientdept.Drugcharges;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 药品处方表 Mapper 接口
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-25
 */
@Mapper
public interface DrugchargesMapper extends BaseMapper<Drugcharges> {

    /**根据病人id查询药品处方收费*/
    @Select("select * from outpatientDepartment.drugcharges where pid=#{pid}")
    List<Drugcharges> selectDrugchargesByPid(Integer pid);
}
